#include "BFS.hpp"
#include "tools.hpp"
#include <fmt/base.h>
#include <fmt/ranges.h>

int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    std::string              beginWord = "hit", endWord = "ait";
    std::vector<std::string> wordList{"ait"};
    auto                     ans = lxj::WordLadderII().findLadders(beginWord, endWord, wordList);
    fmt::print("{}", fmt::join(ans, "\n"));

    fmt::print("\n");
    return 0;
}